/*
 * All content copyright http://www.j2eefast.com, unless 
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.j2eefast.produce.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import com.j2eefast.produce.pms.entity.PmsInspectionAccountEntity;
import com.j2eefast.produce.pms.entity.PmsParticipantEntity;
import com.j2eefast.produce.pms.entity.PmsRegisterEntrustEntity;
import org.apache.ibatis.annotations.Param;

/**
 * <p>登记委托</p>
 *
 * @author: summer
 * @date: 2021-05-30 16:47
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface PmsRegisterEntrustMapper extends BaseMapper<PmsRegisterEntrustEntity> {

	public boolean deleteByIds(@Param("ids") Long[] ids);
	public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);
	//查询用户信息
//	public SysUserEntity getSysById(@Param("userId") Long userId);
//	//获取工程最大编号
//	public PmsRegisterEntrustEntity getRegister();

	//查询最大编号
	public PmsRegisterEntrustEntity selectRegister();



	/**
	 * 页面查询流程实例分页
	 * @return
	 */
	Page<PmsRegisterEntrustEntity> findPage(IPage<?> params,
                                         @Param("inspectionAccount") String inspectionAccount,
                                         @Param("entrustCode") String entrustCode,
											@Param("projectName") String projectName,
											@Param("projectType") String projectType,
											@Param("quota") String quota,
											@Param("entrustUnit") String entrustUnit,
											@Param("region") String region,
											@Param("registerName") String registerName,
											@Param("taskName") String taskName,
											@Param("beginTime") String beginTime,
											@Param("endTime") String endTime,
											@Param("inspectionAccount2") String inspectionAccount2,
											@Param("entrustCode2") String entrustCode2,
                                              @Param("sql_filter") String sql_filter);


	//保存信息
	boolean save(PmsRegisterEntrustEntity pmsRegisterEntrustEntity);

}
